﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using CanDoo.Core.Data;
using CanDoo.Data;
using CanDoo.Admin.Core.Models;

namespace CanDoo.Oil.Core.Models
{
    /// <summary>
    /// 实体类——入库方式
    /// </summary>
    [Serializable]
    [Description("入库方式")]
    public class InStoreType :  DictionaryEntityBase
    {
        /// <summary>
        ///生成结算单
        /// </summary>
        [Display(Name = "生成结算单")]
        [Required]
        public bool AutoCreateBill { get; set; }

        /// <summary>
        ///计算成本
        /// </summary>
        [Display(Name = "核算成本")]
        public bool CalculateCost { get; set; }
    }
}
